package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dataobject.Sos;
import com.bbzn.device.client.dao.sos.SosMapper;
import com.bbzn.device.client.service.SosService;
@Service
public class SosServiceImpl implements SosService{

    @Resource
    private SosMapper sosMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return sosMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Sos record) {
        return sosMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Sos record) {
        return sosMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Sos record) {
        return sosMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Sos record) {
        return sosMapper.insertSelective(record);
    }

    @Override
    public Sos selectByPrimaryKey(Long id) {
        return sosMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Sos record) {
        return sosMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Sos record) {
        return sosMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Sos> findByAll(Sos sos) {
        return sosMapper.findByAll(sos);
    }

    @Override
    public int deleteByImei(String imei) {
        return sosMapper.deleteByImei(imei);
    }

    @Override
    public int updateBatch(List<Sos> list) {
        return sosMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Sos> list) {
        return sosMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Sos> list) {
        return sosMapper.batchInsert(list);
    }

}
